package com.yunsc.store.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-01-23 8:56
 */
@Data
public class StoreDataVO implements Serializable {

    /**
     * 实时概况（订单、用户、商品）
     */
    private  Map<String, Object> overview;
    /**
     * 数量统计
     */
    private Map<String, Object> statistics;
    /**
     * 订单统计
     */
    private Map<String, Object> pending;



    @Data
    public static class Statistics {
        private String goodsTotal;
        private String userTotal;
        private String orderTotal;
        private String consumeUserTotal;

        public Statistics(long userTotal, long goodsTotal, long consumeUserTotal, long orderTotal) {
            this.userTotal = String.valueOf(userTotal);
            this.goodsTotal = String.valueOf(goodsTotal);
            this.orderTotal = String.valueOf(orderTotal);
            this.consumeUserTotal = String.valueOf(consumeUserTotal);
        }
    }

}
